// Team.java
package com.mytech.cslive;

public enum Team {
	RED,
	BLUE;
	
	public static final String RED_STRING  = "Red";
	public static final String BLUE_STRING = "Blue";
	
	public static final String[] TEAM_VALUES = {RED_STRING, BLUE_STRING};
	
	public static String[] getTeamValues() {
		return TEAM_VALUES;
	}
	
	public static String getRedString() {
		return RED_STRING;
	}
	
	public static String getBlueString() {
		return BLUE_STRING;
	}
	
	public static Team parseString(String teamString) {
		Team team = null;
		
		if (teamString.equals(getRedString())) {
			team = Team.RED;
		} else if (teamString.equals(getBlueString())) {
			team =Team.BLUE;
		}
		
		return (team);
	}
}
